{extend name="./static/page/admin_tpl.html" /}

{block name="header_title"}大话软件后台{/block}
{block name="page_css"}
<link href="{$__TEMPLETE__}/css/admin/question/addQuestion.css" rel="stylesheet">
<link href="{$__PUBLIC__}/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
{/block}
{block name="page_header_js"}
<script type="text/javascript" charset="utf-8" src="{$__PUBLIC__}/umeditor/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="{$__PUBLIC__}/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$__PUBLIC__}/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="{$__PUBLIC__}/umeditor/lang/zh-cn/zh-cn.js"></script>
{/block}
{block name="content"}
<div class="content">
<div class="col-md-12 right-section">
    <!--内容区域-->
    <h3>添加题目</h3>
    <div class="inner-section row">
        <div class="items add-div">
            <form id="myForm" action="#" method="post" enctype="multipart/form-data">
                <div class="item table-responsive">
                    <table class="table table-striped table-hover table-bordered table-base">
                        <tbody>


                        <tr>
                            <td>题型<input type="hidden" name="ago_type" class="ago-type" value=""><input type="hidden" name="score" class="type-score" value=""><label class="must-tag">*</label></td>
                            <td class="question-type">
                                <span class="label-span">
                                    <label><input type="radio" name="type" class="select-type my-iradio" value="1">单选题<span class="subject-score">1</span>分</label>
                                </span>
                                <span class="label-span">
                                    <label><input type="radio" name="type" class="select-type my-iradio" value="2">多选题<span class="subject-score">1</span>分</label>
                                </span>
                                <span class="label-span">
                                    <label><input type="radio" name="type" class="select-type my-iradio" value="3">判断题<span class="subject-score">1</span>分</label>
                                </span>
                            </td>
                            <td></td>
                        </tr>
                        <!-- 案例分析题 -->
                        <tr class="case-analysis hidden">
                            <td>案例<label class="must-tag">*</label></td>
                            <td>
                                <textarea name="case_info" style="resize:none; height: 80px; width: 600px;"></textarea>
                            </td>
                            <td></td>
                        </tr>
                        <tr class="case-question-description hidden">
                            <td>问题描述<input type="hidden" class="case-description-info" name="case_description_info" value=''><label class="must-tag">*</label></td>
                            <td>
                                <div id="case-result-content">
                                    <div class="case-button-select" style="margin-top:5px;">
                                        <a class="btn btn-primary btn-sm add-case-question pull-right">添加小题</a>
                                    </div>
                                    <div class="case-result-content-list bottom hidden">
                                        <a class="btn btn-default btn-sm del-case-question pull-right">删除小题</a>
                                        <textarea name="case-title-info" style="resize:none; height: 60px; width: 500px;"></textarea>
                                        <div class="case-content-info">
                                            <div class="case-info"><span class="select">A</span>.&nbsp;<input type="text" class="select-label" id="select-1"><a class="btn btn-success btn-sm pull-right case-add-select">添加</a></div>
                                            <div class="case-info hidden"><span class="select"></span>.&nbsp;<input type="text" class="select-label"><a class="btn btn-default btn-sm pull-right case-del-select">删除</a></div>
                                        </div>
                                        <div class="cf"></div>
                                        <div class="key-info">答案：</div>
                                        <div class="case-content-result">
                                            <span class="label-span"><label><input type="checkbox" name="case-result-checkbox" class="select-result my-iradio" value="A">&nbsp;A</label></span>
                                        </div>
                                        <div class="case-content-analysis">
                                            <div class="key-info">解析：</div>
                                            <textarea name="case-content-analysis-info" placeholder="案例解析" style="resize:none; height: 60px; width: 455px;"></textarea>
                                        </div>
                                    </div>
                                    <div class="case-result-content-list">
                                        <textarea name="case-title-info" style="resize:none; height: 60px; width: 500px;"></textarea>
                                        <div class="case-content-info">
                                            <div class="case-info"><span class="select">A</span>.&nbsp;<input type="text" class="select-label"><a class="btn btn-success btn-sm pull-right case-add-select">添加</a></div>
                                            <div class="case-info hidden"><span class="select"></span>.&nbsp;<input type="text" class="select-label"><a class="btn btn-default btn-sm pull-right case-del-select">删除</a></div>
                                        </div>
                                        <div class="cf"></div>
                                        <div class="key-info">答案：</div>
                                        <div class="case-content-result">
                                            <span class="label-span"><label><input type="checkbox" name="case-result-checkbox" class="select-result my-iradio" value="A">&nbsp;A</label></span>
                                        </div>
                                        <div class="case-content-analysis">
                                            <div class="key-info">解析：</div>
                                            <textarea name="case-content-analysis-info" placeholder="案例解析" style="resize:none; height: 60px; width: 455px;"></textarea>
                                        </div>
                                    </div>
                                </div>
                                <div class="case-result-score">每小题 <input type="text" class="case-score"> 分</div>
                            </td>
                            <td></td>
                        </tr>
                        <!-- 结束 -->
                        <tr class="other-description hidden">
                            <td>问题描述<input class="verify-content" name="verify_content" type="hidden"><label class="must-tag">*</label></td>
                            <td class="content-info-list">
                                <div class="select-content hidden">
                                    <div class="question-desc" id="question-desc"></div>
                                    <a class="btn btn-primary btn-question-edit">编辑</a>
                                    <div class="content-info">
                                        <div class="info"><span class="select">A</span>.&nbsp;<input type="text" class="select-label" id="select_1" readonly> <a class="btn btn-success btn-sm add-select-content">添加</a></div>
                                    </div>
                                </div>
                            </td>
                            <td></td>
                        </tr>
                        <tr class="other-result hidden">
                            <td>答案<input type="hidden" class="material-result-info" name="material_result_info"><label class="must-tag">*</label></td>
                            <td>
                                <div class="material-button-select hidden" style="margin-bottom:5px;">
                                    <a class="btn btn-primary btn-sm add-fenlu">添加分录</a>
                                    <a class="btn btn-primary btn-sm add-empty">添加填空</a>
                                    <a class="btn btn-primary btn-sm add-select">添加选择</a>
                                </div>
                                <div class="material-select-content hidden">
                                    <div class="option-list material-type-select">
                                        <div class="tihao"></div>
                                        <div class="material-delete-all"><a class="btn btn-danger btn-sm del-entry-question-3">全删</a></div>
                                        <div class="material-score"><input type="text" value="" class="score" placeholder="分值"></div>
                                        <div class="contentInfo">
                                            <textarea class="material-select-title" style="resize:none; height: 50px; width: 600px;" placeholder="选择题题目"></textarea>
                                            <div class="material-select-list">
                                                <div class="material-info"><span class="select">A</span>.&nbsp;<input type="text" class="select-label"><a class="btn btn-success btn-sm material-add-select">添加</a></div>
                                                <div class="material-info hidden"><span class="select"></span>.&nbsp;<input type="text" class="select-label"><a class="btn btn-default btn-sm  material-del-select">删除</a></div>
                                            </div>
                                            <div class="material-select-key">
                                                <span class="key-text">答案：</span>
                                                <div class="material-select-result">
                                                    <span class="label-span"><label><input type="checkbox" name="select-result-checkbox" class="select-result my-iradio" value="A">&nbsp;A</label></span>
                                                </div>
                                            </div>
                                            <textarea class="analysis" placeholder="解析" style="resize:none; height: 50px; width: 600px;"></textarea>
                                        </div>
                                    </div>
                                </div>
                                <div id="material-result-content">

                                </div>
                                <div class="result-content"></div>
                                <input type="hidden" name="result" id="result" value="">
                                <input type="hidden" name="optionList" id="optionList" value="">
                            </td>
                            <td></td>
                        </tr>
                        <tr class="other-analysis hidden">
                            <td>解析<label class="must-tag"></label></td>
                            <td>
                                <div class="question-desc" id="question-analysis"></div>
                                <a class="btn btn-primary btn-question-edit">编辑</a>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="hidden" name="content" id="content" value="">
                                <input type="hidden" name="info" id="info" value="">
                                <input type="hidden" name="analysis" id="analysis" value="">

                                <button type="button" class="btn btn-success btn-md" id='save'>添加</button>
                                <a class="btn btn-default btn-md" href="javascript:window.history.go(-1);">返回</a>
                            </td>
                            <td></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </form>
        </div>
    </div>
</div>
</div>

<!--选择会计科目标签-->
<div class="modal fade" id="bindEntryDialog"  tabindex="-1" role="dialog"
     aria-labelledby="myModalEntry" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">请录入答案</h4>
            </div>
            <div class="modal-body">
                <div id="myContent">
                    <div class="search-param-panel">
                        <!-- umeditor -->
                        <script type="text/plain" id="select_answer" name="select_answer" style="width:860px;height:200px;"></script>
                        <script type="text/javascript">
                        //实例化编辑器
                        var um = UM.getEditor('select_answer');
                        </script>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary save_btn" id="bindSave" data-dismiss="modal">保存</button>
                <button type="button" class="btn btn-default cancel_btn" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


{/block}
{block name="page_js"}
<script src="{$__TEMPLETE__}/js/admin/question/addQuestion.js"></script>
{/block}